package com.yxs.school.api.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.yxs.school.api.entity.Article;
import com.yxs.school.api.entity.ArticleVo;
import com.yxs.school.api.mapper.ArticleMapper;
import com.yxs.school.api.service.IArticleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 文章 服务实现类
 * </p>
 *
 * @author whp
 * @since 2019-11-22
 */
@Service
public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> implements IArticleService {
    @Resource
    private ArticleMapper articleMapper;
    @Override
    public List<ArticleVo> selectListByType(Wrapper<Article> wrapper) {
        return articleMapper.selectByType(wrapper);
    }
}
